package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SealTypeInUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SealTypeInUnitMapper;
import com.ruoyi.system.service.ISealTypeInUnitService;

/**
 * 单位内的印章类型Service业务层处理
 * 
 * @author ess
 * @date 2021-10-18
 */
@Service
public class SealTypeInUnitServiceImpl implements ISealTypeInUnitService 
{
    @Autowired
    private SealTypeInUnitMapper sealTypeInUnitMapper;

    /**
     * 查询单位内的印章类型
     * 
     * @param unitSealTypeId 单位内的印章类型主键
     * @return 单位内的印章类型
     */
    @Override
    public SealTypeInUnit selectSealTypeInUnitByUnitSealTypeId(Long unitSealTypeId)
    {
        return sealTypeInUnitMapper.selectSealTypeInUnitByUnitSealTypeId(unitSealTypeId);
    }

    /**
     * 查询单位内的印章类型列表
     * 
     * @param sealTypeInUnit 单位内的印章类型
     * @return 单位内的印章类型
     */
    @Override
    public List<SealTypeInUnit> selectSealTypeInUnitList(SealTypeInUnit sealTypeInUnit)
    {
        return sealTypeInUnitMapper.selectSealTypeInUnitList(sealTypeInUnit);
    }

    /**
     * 新增单位内的印章类型
     * 
     * @param sealTypeInUnit 单位内的印章类型
     * @return 结果
     */
    @Override
    public int insertSealTypeInUnit(SealTypeInUnit sealTypeInUnit)
    {
        return sealTypeInUnitMapper.insertSealTypeInUnit(sealTypeInUnit);
    }

    /**
     * 修改单位内的印章类型
     * 
     * @param sealTypeInUnit 单位内的印章类型
     * @return 结果
     */
    @Override
    public int updateSealTypeInUnit(SealTypeInUnit sealTypeInUnit)
    {
        return sealTypeInUnitMapper.updateSealTypeInUnit(sealTypeInUnit);
    }

    /**
     * 批量删除单位内的印章类型
     * 
     * @param unitSealTypeIds 需要删除的单位内的印章类型主键
     * @return 结果
     */
    @Override
    public int deleteSealTypeInUnitByUnitSealTypeIds(Long[] unitSealTypeIds)
    {
        return sealTypeInUnitMapper.deleteSealTypeInUnitByUnitSealTypeIds(unitSealTypeIds);
    }

    /**
     * 删除单位内的印章类型信息
     * 
     * @param unitSealTypeId 单位内的印章类型主键
     * @return 结果
     */
    @Override
    public int deleteSealTypeInUnitByUnitSealTypeId(Long unitSealTypeId)
    {
        return sealTypeInUnitMapper.deleteSealTypeInUnitByUnitSealTypeId(unitSealTypeId);
    }
}
